import 'babel-polyfill'
import Vue from 'vue'
import './plugins/vuetify'
import App from './App.vue'
import '@mdi/font/css/materialdesignicons.css' // Ensure you are using css-loader


import axios from 'axios'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios);


axios.defaults.timeout = 9000;// 在超时前，所有请求都会等待 9 秒
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';// 配置请求头
axios.defaults.baseURL = "//" + window.location.hostname + ":" + window.location.port;// 配置接口地址
axios.defaults.withCredentials = false;

Vue.prototype.$axios = axios;// 将axios配置成vue的原型

Vue.config.productionTip = false;

new Vue({
    render: h => h(App),
}).$mount('#app');
